package pm.gui;

import java.io.File;
import java.util.Map;

/**
 * @author Anton Bernatski
 */
public interface GuiModuleListener {

	/**
	 * Informs GuiModuleListener that user has choosed file
	 * at FileChoose Screen
	 *
	 * @param file chosed file
	*/
	public void openFile(final File file);

	/**
	 * Informs GuiModuleListener that work on current
	 * document was finished
	 */
	public void closeCurrentDocument();

	/**
	 * Informs GuiModuleListener that user
	 * wants to view next page of current
	 * document
	 */
	public void nextPage();

	/**
	 * Informs GuiModuleListener that user
	 * wants to view previous page of current
	 * document
	 */
	public void previousPage();

	/**
	 * Informs GuiModuleListener that user
	 * asks print dialog for current document
	 */
	public void printDocument();

    public void print(Map params);

    public void preview();

    /**
	 * Informs GuiModuleListener that user
	 * asks for scanning. Scanned image than
	 * should be showed.
	 */
	public void scan();

	/**
	 * Informs GuiModuleListener that user
	 * asks for saving of scanned image.
	 */
	public void save();

	/**
	 * Informs GuiModuleListener that user
	 * asks for finishing his work with pm,
	 * and withdrawing the change.
	 */
	public void finish();
}
